package com.kun.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kun.dto.UserDto;
import com.kun.entity.SysUser;
import com.kun.transform.TableData;
import com.kun.dto.SysUserDTO;
import com.kun.vo.SysUserVO;

/**
 * @author kun.li
 */
public interface SysUserService extends IService<SysUser> {
    /**
     * 保存用户
     * @param userDto
     * @return
     */
    Boolean saveUser(UserDto userDto);

    /**
     * 更新用户
     * @param userDto
     * @return
     */
    Boolean updateUser(UserDto userDto);

    SysUser getSysUserAndRole(String userId);

    Page<SysUserVO> getUserTableData(SysUserDTO sysUserDTO);

}
